package com.homedo.odin.solution.contract.mng;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * Created by liyi on 2018/5/21.
 */
@ApiModel(description = "基础字典数据")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class DictDataReq extends BaseRequest {

    /**
     * id
     */
    @ApiModelProperty("id,新增时不用传，编辑时必传")
    private Integer id;
    /**
     * 类型英文 code 用于分类与获取数据
     */
    @ApiModelProperty(value = "类型英文 code 用于分类与获取数据", required = true)
    @NotNull(message = "类型值不能为空")
    private String type;
    /**
     * key值
     */
    @ApiModelProperty(value = "key值", required = true)
    @NotNull(message = "key值不能为空")
    private String key;
    /**
     * value值
     */
    @ApiModelProperty(value = "value值", required = true)
    @NotNull(message = "value值不能为空")
    private String value;


    /**
     * 修改人编号
     */
    @ApiModelProperty(value = "修改人编号", required = true)
    @NotNull(message = "修改人编号不能为空")
    private Long modifiedBy;
    /**
     * 修改人名字
     */
    @ApiModelProperty(value = "修改人名字", required = true)
    @NotNull(message = "修改人不能为空")
    private String modifiedName;
}
